/* header style */
.header-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  width: 100%;
  height: 64px;
  padding: 0 30px;
  background-color: #fff;
  box-shadow: 2px 0px 8px 0px rgba(0, 0, 0, 0.1);
  & .logo-box {
    flex-shrink: 0;
    width: 140px;
    margin-right: 60px;
    height: 100%;
    background: url("../images/logo.png") left center / auto 45px no-repeat;
  }
  & .right-box {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  & .docs-link {
    margin-right: 30px;
    &.disabled {
      pointer-events: none;
      color: #909399;
    }
    &.index-link {
      margin-right: 32px;
    }
  }
  & .menu-link , & .tools-dropdown-trigger {
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    color: #303133;
    transition: all 0.3s;
    &:before {
      position: absolute;
      content: "";
      width: 100%;
      height: 2px;
      top: 100%;
      left: 0;
      margin-top: 4px;
      background-color: transparent;
      transition: all 0.3s;
    }
    &:hover, &.is-active{
      color: #FF6407;
    }
    &.is-active:before {
      background-color: #FF6407;
    }
  }
  & .tools-dropdown-trigger {
    margin-right: 60px;
    &:after {
      position: absolute;
      content: "";
      width: 1px;
      height: 24px;
      top: 0px;
      right: -30px;
      background-color: #EBEEF5;
    }
  }
  & .media-tools-btn, & .media-index-btn {
    display: none;
    width: 40px;
    height: 40px;
    background-size: 20px auto;
    background-position: center center;
    background-repeat: no-repeat;
    
  }
  & .media-tools-btn {
    background-image: url(../images/icons/tools-more.png);
  }
  & .media-index-btn {
    margin-left: 8px;
    background-image: url(../images/icons/home-phone.png);
  }
}
.tools-dropdown {
  .tools-down-menu {
    padding: 0 2px 22px 0;
    width: 520px;
    margin-top: 0px;
  }
  .type-title {
    color: #191a1b;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    border-bottom: 1px solid #ebeef5;
    padding-bottom: 6px;
    padding-top: 28px;
    &:first-child {
      padding-top: 0;
    }
  }
  .tools-box {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
  }
  .box {
    cursor: pointer;
    width: calc(50% - 5px);
    color: #656972;
    font-size: 12px;
    margin-right: 5px;
    margin-top: 16px;
    padding: 10px 0 10px 8px;
    border-radius: 4px;
    border: 2px solid transparent;
    box-sizing: border-box;
    transition: all 0.3s;
    &:nth-child(2n) {
      margin-left: 5px;
      margin-right: 0;
    }
    & > div {
      display: inline-block;
      vertical-align: middle;
    }
    & .info {
      white-space: break-spaces;
      word-break: break-word;
    }
    & .desc {
      padding-top: 8px;
    }
    & .title {
      transition: all 0.3s;
      font-size: 16px;
      color: #191A1B;
      font-weight: 600;
      line-height: 16px;
    }
    &:hover .title {
      color: #FF6407;
    }
    &.is-active {
      box-shadow: 1px 1px 5px 0px rgba(254, 99, 6, 0.17);
      border-color: #FF6407;
    }
    &.disabled {
      pointer-events: none;
      color: #909399;
      & .title {
        color: inherit;
      }
    }
  }
} 
.doc-tools-dropdown {
  .tools-down-menu {
    min-width: 200px;
  }
  .box {
    cursor: pointer;
    width: 100%;
    color: #656972;
    font-size: 12px;
    padding: 4px 14px;
    box-sizing: border-box;
    transition: all 0.3s;
    & > div {
      display: inline-block;
      vertical-align: middle;
    }
    .w-product-icon-menu {
      width: 48px;
      height: 48px;
      margin-right: 15px;
      background-size: 48px auto;
    }
    & .title {
      display: inline-block;
      vertical-align: middle;
      transition: all 0.3s;
      font-size: 16px;
      color: #191A1B;
      font-weight: 600;
      line-height: 16px;
    }
    &:hover .title {
      color: #FF6407;
    }
    &.disabled {
      pointer-events: none;
      color: #909399;
      & .title {
        color: inherit;
      }
    }
  }
} 
.w-product-icon-menu {
  width: 64px;
  height: 64px;
  margin-right: 8px;
  background-size: 42px auto;
}
.media-tools-box-mask {
  cursor: pointer;
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.37);
  left: 0;
  top: 0;
  z-index: 2;
  & .close-btn {
    position: absolute;
    cursor: pointer;
    right: 12px;
    top: 12px;
    width: 16px;
    height: 16px;
    background-size: 16px auto;
    background-position: center center;
    background-repeat: no-repeat;
    background-image: url(../images/icons/return.png);
  }
}
.media-tools-box {
  width: 100%;
  background: #fff;
  border-radius: 0 0 10px 10px;
  padding: 34px 21px 21px;
  & .tab-box {
    overflow-x: auto;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    color: #909399;
    padding: 0 5px 10px;
    &::-webkit-scrollbar {
      width: 0 !important;
      height: 0 !important;
      display: none;
    }
    & > div {
      cursor: pointer;
      display: inline-block;
      vertical-align: middle;
    }
    & .tab-item {
      padding-right: 24px;
      &:last-child {
        padding-right: 0;
      }
    }
    & .tab-item.is-active {
      color: #191A1B;
    }
  }
  & .tab-content-box {
    display: flex;
    flex-wrap: wrap;
    & .box {
      flex: 1;
      min-width: calc(50% - 5px);
      max-width: calc(50% - 5px);
      display: flex;
      align-items: center;
      padding: 15px 14px 14px 8px;
      margin-top: 10px;
      color: #606266;
      font-size: 10px;
      background: #fff;
      box-shadow: 2px 2px 15px 0px rgba(152, 153, 155, 0.17);
      border-radius: 10px;
      &:nth-child(2n) {
        margin-left: 5px;
      }
      &:nth-child(2n-1) {
        margin-right: 5px;
      }
      &.database {
        min-width: 100%;
        max-width: 100%;
        width: 100%;
        margin: 10px 0 0 !important;
      }
      &.disabled {
        pointer-events: none;
        color: #909399;
        & .title {
          color: inherit;
        }
      }
    }
    & .desc {
      padding-top: 5px;
    }
    & .title {
      color: #191A1B;
      font-weight: 500;
      font-size: 11px;
    }
    & .box-info {
      flex: 1;
    }
    & .w-product-icon-menu {
      width: 50px;
      height: 50px;
      margin-right: 2px;
      flex-shrink: 0;
      background-size: 34px auto;
      &.uqbar {
        background-size: 28px auto;
      }
    }
  }
}
@media screen and (max-width: 1100px) {
  .header-container .logo-box {
    width: 115px;
    background-size: auto 40px;
    margin-right: 50px;
  }
  .header-container .docs-link {
    margin-right: 15px !important;
  }
  .header-container .tools-dropdown-trigger {
    margin-right: 30px;
    &::after {
      right: -15px;
    }
  }
}
@media screen and (max-width: 950px) {
  .header-container .logo-box {
    margin-right: 20px;
  }
  .header-container .docs-link, .header-container .menu-link, .header-container .tools-dropdown-trigger {
    font-size: 13px;
  }
}
@media screen and (max-width: 850px) {
  .header-container {
    padding: 0 12px;
    & .logo-box {
      width: 120px;
    }
    & .docs-link, & .tools-dropdown-trigger{
      display: none;
    }
    & .media-tools-btn, & .media-index-btn, & .media-tools-box-mask {
      display: block;
    }
  }
}
